package com.spark.common.widget

import android.graphics.Canvas
import android.graphics.ColorFilter
import android.graphics.drawable.Drawable
import android.support.annotation.IntDef

class BadgeDrawable : Drawable() {
    companion object {
        const val TYPE_NUMBER = 1
        const val TYPE_ONLY_ONE_TEXT = 1 shl 1
        const val TYPE_WITH_TWO_TEXT = 1 shl 2
        const val TYPE_WITH_TWO_TEXT_COMPLEMENTARY = 1 shl 3

        @IntDef(TYPE_NUMBER, TYPE_ONLY_ONE_TEXT, TYPE_WITH_TWO_TEXT, TYPE_WITH_TWO_TEXT_COMPLEMENTARY)
        annotation class BadgeType
    }
    object Config{
        private var badgeType = TYPE_NUMBER
        private var number = 0
        private var txt1 = ""
        private var txt2 = ""
    }
    override fun draw(canvas: Canvas?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun setAlpha(alpha: Int) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getOpacity(): Int {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun setColorFilter(colorFilter: ColorFilter?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

}